package com.shaw.workrecord.service;

import com.shaw.workrecord.entity.PageRequest;
import com.shaw.workrecord.entity.PageResponse;
import com.shaw.workrecord.pojo.game.request.RoomAddRequest;
import com.shaw.workrecord.pojo.game.request.RoomEditRequest;
import com.shaw.workrecord.pojo.game.response.RoomResponse;

/**
 * @author jiangjunhui
 * @description
 * @date 2022/9/15 10:34
 */
public interface IRoomService {

    /**
     * 查询分页
     *
     * @param pageRequest 分页请求
     * @return
     */
    PageResponse<RoomResponse> getRoomPage(PageRequest pageRequest);

    /**
     * 新增房间
     *
     * @param request 请求对象
     * @return
     */
    Boolean addRoom(RoomAddRequest request);

    /**
     * 编辑房间
     *
     * @param request 请求对象
     * @return
     */
    Boolean editRoom(RoomEditRequest request);

    /**
     * 删除房间
     *
     * @param id 房间id
     * @return
     */
    Boolean deleteRoom(Long id);
}
